package com.heaven1949.tmall.order.feign;

import com.heaven1949.tmall.common.core.dto.ApiResult;
import com.heaven1949.tmall.order.feign.dto.ProductDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author zhangjian
 * @date 2023-03-10 16:40:33
 */
@Slf4j
@Component
public class ProductFeignFallbackClient implements ProductFeignClient {

    @Override
    public ApiResult<ProductDTO> detail(Long id) {
        log.error("feign远程调用商品服务异常后的降级方法");
        return null;
    }

}